package com.sh.data.engine.repository.dao.dataquality.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.Data;

import java.util.Date;


/**
 * @author tinglan.ys
 * @description: 数据质量任务规则 规则执行记录
 * @date 2022/2/17 下午3:28
 */
@Data
@TableName("tb_dataquality_job_rule")
public class DataQualityJobRuleEntity extends EngineBaseModel<DataQualityJobRuleEntity> {

    /**
     * 规则任务id
     */
    private Long dataqualityJobId;

    /**
     * 规则id
     */
    private Long ruleId;

    private String ruleName;

    /**
     * 规则来源 0 内置模板规则 1 标准模板规则
     */
    private Integer ruleFrom;

    /**
     * "运算符" "0","大于" "1","大于等于" "2","等于" "3","小于" "4","小于等于" "5","不等于" "6","属于" "7","不属于"
     */
    private String ruleCompareType;

    /**
     * 期望值
     */
    private String ruleExpectValue;

    /**
     * 规则执行开始时间
     */
    private Date startTime;

    /**
     * 规则执行结束时间
     */
    private Date endTime;

    /**
     * 0-运行中 1-正常 2-异常 3-sql语句出错
     */
    private Integer status;

    /**
     * 告警数量
     */
    private Integer errorNum;

    private String fieldNames;
}
